Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query: Fix metadataServer/rulesServer/targetsServer data race #4811

Merged

Conversation

hanjm
Copy link
Member

@hanjm hanjm commented Oct 29, 2021

Relevant #4805.

Signed-off-by: Jimmiehan hanjinming@outlook.com

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  1. write a unit test, go test -race to reproduce it .
  2. add sync.Mutex to *metadataServer/*rulesServer/*targetsServer.

Verification

go test -race -run TestProxyDataRace -v

Signed-off-by: Jimmiehan <hanjinming@outlook.com>
@hanjm hanjm force-pushed the fix/jimmiehan-fix-proxy-server-data-race branch from dc2b99a to 1391b70 Compare October 29, 2021 06:13
@hanjm
Copy link
Member Author

hanjm commented Oct 30, 2021

Hi @GiedriusS , could you help me review this fixes, Thank you.

Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!

@yeya24 yeya24 merged commit 0e714dc into thanos-io:main Oct 30, 2021
akanshat pushed a commit to akanshat/thanos that referenced this pull request Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants